class Person(object):
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def info(self):
        print(self.name, self.age)


# class 类(父类)
class Student(Person):
    def __init__(self, name, age, stu_no):
        super().__init__(name, age)
        self.stu_no = stu_no

    # 重写父类方法
    def info(self):
        # 调用父类方法
        super().info()
        print(self.stu_no)


stu = Student('张三', 20, 101)
stu.info()
